package pruebas;

import alumno.sql.ConectaDb;
import java.sql.Connection;
import java.sql.SQLException;

public class PruevaConexion {

    public static void main(String[] args) {
        ConectaDb db = new ConectaDb();
        Connection cn = db.getConnection();

        if (cn != null) {
            System.out.println("Exito");

            try {
                cn.close();
            } catch (SQLException ex) {

            }
        } else {
            System.out.println("Ha Fallado");
        }

    }
}
